﻿using DAL;
using Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class ClubManage
    {
        public bool AddClub(Club club)
        {
            try
            {
                ClubService memberdal = new ClubService();
                return memberdal.AddClub(club);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
        }

        public bool DelClub(Club club)
        {
            try
            {
                ClubService memberdal = new ClubService();
                return memberdal.DelClub(club);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
        }
        public bool UptClub(Club club)
        {
            try
            {
                ClubService memberdal = new ClubService();
                return memberdal.UptClub(club);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
        }

        public object GetALLClub(string sql)
        {
            try
            {
                ClubService memberdal = new ClubService();
                return memberdal.GetALLClub(sql);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
        }

        public ArrayList GetALLClubs(string sql)
        {
            try {
                ClubService memberdal = new ClubService();
                return memberdal.GetALLClubs(sql);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
            
        }

       
    }
}
